<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>退货订单详情</title>
    <link rel="stylesheet" href="/sb/stock.css"/>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>

</head>
<body>
<div class="sp-wrapper">
    <h2 class="sp-title"><span>退货订单详情</span></h2>
    <div class="sp-tool">
        <span class="fl"><b>退货单号：[[${order.orderNum}]]</b>
            <b>退货确认时间：[[${#dates.format(order.createTime * 1000, 'yyyy-MM-dd HH:mm:ss')}]]</b>
            <b>退货联系人：[[${order.contactPerson}]]</b>
            <b>联系手机号：[[${order.mobile}]]</b>
            <b>退货人地址：[[${order.address}]]</b>
            <b>物流信息：[[${order.logisticsCompany}]] [[${order.logisticsCode}]]</b>
        </span>
        <span class="fr">
            <i class="print">打印</i>

        </span>
    </div>
    <div class="sp-table">
        <form id="stockinform" action="/checkout/stock_in" method="post">
            <input type="hidden" name="checkoutId" id="checkoutId" th:value="${checkoutId}"/>
            <table>
                <thead>
                <tr>
                    <th>序号</th>
                    <th>商品</th>
                    <th>规格</th>
                    <th>SKU</th>
                    <th>入库数量</th>
                    <th>不良品数量</th>
                </tr>
                </thead>
                <tbody id="sp-data">
                <tr th:each="item:${items}">
                    <td th:text="${itemStat.index + 1}"></td>
                    <td th:text="${item.goodsName}">
                    </td>
                    <td>
                        颜色：<i th:text="${item.colorValue}"></i>&nbsp;尺码：<i th:text="${item.sizeValue}"></i>
                    </td>
                    <td th:text="${item.skuNumber}"></td>
                    <td th:text="${item.inQuantity}">200</td>
                    <td th:text="${item.badQuantity}"></td>

                </tr>

                </tbody>
            </table>
        </form>
    </div>
    <script>

        layui.use(['form', 'layer'], function () {
            var form = layui.form
                , layer = layui.layer;

        });

    </script>


</div>
</body>
</html>